﻿using SGA.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SGA.Charges
{
    public partial class CollectionManager : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void AddCollectionBankBtn_Click(object sender, EventArgs e)
        {
            //try
            //{
            //    CollectionBanks newBank = new CollectionBanks();

            //    newBank.Designation = NameBankTbox.Text.Trim();
            //    newBank.IBAN = IBANTbox.Text.Trim();
            //    newBank.IsActive = IsActiveBankChkBox.Checked;
            //    newBank.IsDefault = IsDefaultBankChkBox.Checked;

            //    using (MailingEntities bd = new MailingEntities())
            //    {
            //        bd.CollectionBanks.Add(newBank);
            //        bd.SaveChanges();
            //    }
            //}
            //catch (Exception ex)
            //{
            //    NotificationLabel.Text = String.Format("{0}", ex.Message);
            //    //NotificationLabel.Text = e.Message.ToString();
            //}
        }
    }
}